package com.vq3.digitalizationsoftwareintegrates.Utils.PermissionControl;


import com.vq3.digitalizationsoftwareintegrates.Entity.User.UserEntity;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**用户验证模块
 *
 * */
public class PermissionControl {
    /*public boolean checkLoginStatus(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, HttpSession session) {
        User user = (User) session.getAttribute("USER");
        return user != null;
    }*/
    public UserEntity getLoginUser(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, HttpSession session) {
        return (UserEntity) session.getAttribute("USER");
    }
}
